package br.com.commerce.produtor;

import javax.enterprise.inject.Produces;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class Produtor {

	private static EntityManagerFactory factory = Persistence.createEntityManagerFactory("llcommerce");
	
	@Produces
	public EntityManager criarEntityManager(){
		return factory.createEntityManager();
	}
}
